const Router = require("koa-router");
const router = new Router();
router.get("/", ctx => {
  ctx.body = "这里是首页";
});

router.get("/error", ctx => {
  throw new Error("Api Error");
});
module.exports = router;
